﻿@page "/verify"

@using North.Core.Common;
@using North.Core.Entities
@using SqlSugar

@inject ILogger _logger
@inject ISnackbar _snackbar
@inject AppSetting _appSetting
@inject NavigationManager _navigationManager
@inject SqlSugarClient _client

@layout AuthLayout

<MudStack Row AlignItems="AlignItems.Center" id="verify_stack">
    @if (VerifyRunning)
    {
        <MudProgressCircular Color="Color.Info" Indeterminate StrokeWidth="4" id="verify_progress"/>
        <MudText id="verify_message">验证中，请稍后……</MudText>
    }
    else
    {
        <MudText id="verify_message">@($"系统将在{RemainTime}秒后跳转")</MudText>
    }
</MudStack>

<style>
    #verify_stack {
        width: fit-content;
        height: fit-content;
        left: 0;
        right: 0;
        top: 0;
        bottom: 180px;
        margin: auto;
        position: absolute;
    }

    #verify_progress {
        width: 22px;
        height: 22px;
    }

    #verify_message {
        font-size: 20px;
    }
</style>